<template>
  <div>
    <div class="ser_div">
      <el-row>
       
        <el-col> 
          <el-button
            @click="add_color('ruleForm')"
            icon="el-icon-plus"
            class="add_btn"
            v-permission="['dingdan_add']"
            >新增订单</el-button
          >
        </el-col>
      </el-row>
    </div>
    <!-- 新增订单 -->
    <addsales ref="add_sales" @get_list="getlist" />
  </div>
</template>

<script>
import {

  
} from "@/api/product/index";
import addsales from "@/components/Addsales";
export default {
  components: {
    addsales,
  },
  data() {
    return {
    
    }
  },
  created() {
    
  },
  mounted() {
   
  },

  methods: {
    add_color() {
      this.$refs.add_sales.inits("add_order");
      // 业务员
    },
    getlist() {
      getOrderList().then((res) => {
        if (res.code == 200) {
          this.dataList = res.data.data;
          this.total = res.data.total;
          this.loading = false;
          this.toggleSelection(this.dayinlist);
          console.log(this.dayinlist, "erreeee");
        }
      });
    },
  },
};
</script>

<style scoped>
.list_order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: left;
}

.list_li {
  display: flex;
  height: 60px;
  flex-direction: column;
  justify-content: space-around;
}

.list_li .none {
  display: none;
}

.list_li .red {
  display: block;
  color: #cc1010;
}

.list_order .lis {
  width: 100%;
}

#printArea {
  height: 100%;
}

#printArea table tr td {
  width: 100%;
  display: flex;
  align-items: center;
}

#printArea table {
  border: 1px solid #c5c5c5;
}

#printArea table td {
  border: 1px solid #c5c5c5;
  text-align: center;
  padding: 0;
  margin: 0;
  padding: 0 5px;
  min-height: 30px;
  box-sizing: border-box;
}

#printArea table td span {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#printArea table td span:first-child {
  width: 150px;
  border-right: 1px solid #c5c5c5;
}

#printArea table td span:last-child {
  flex: 1;
}

.float_icon {
  position: absolute;
  left: 0px;
  top: 0;
  font-size: 26px;
}

.biaoji_radio >>> .el-radio__label {
  font-size: 30px;
}

.biaoji_radio >>> .el-radio__inner {
  width: 25px;
  height: 25px;
  border-radius: 25;
}

.el-radio__original {
}
</style>
